
function getaQuote(n) {
    var n=5;
    var whichQuote=Math.floor(Math.random()*n);
	
    var quote=new Array(n)
    quote[0]="High expectations are the key to everything";
    quote[1]="Life is the art of drawing without an eraser";
    quote[2]="Everything has been figured out, except how to live";   
    quote[3]="Reality is a creation of our excesses";
    quote[4]="Make everything as simple as possible, but not simpler";
    
    var author=new Array(n)
    author[0]="Sam Walton";
    author[1]="John W. Gardner";
    author[2]="jean-paul sartre";   
    author[3]="Emil Cioran";
    author[4]="Albert Einstein";
    
    $('.quote').html(quote[whichQuote]);
    $('.quote-author').html(author[whichQuote]);
}

$(document).ready(function() {
    
	getaQuote();
	$("#attraction-slider").infiniteSlider({
		lines: 3,
        speed: 10,
        margin: 7,
        slideSelector: "slider-element",
        slideColorSelector: "slider-color",
        colors: [
            ["FFF200", "D7DF23", "E9C31E", "FFCB05"],
            ["79AD36", "00652E", "00A651", "00AD7D"],
            ["F04E29", "ED1C24", "DA1D52", "BA771D", "F7941E"],
            ["3777BC", "3777BC", "A4DAD2", "939598"],
            ["DF8A89", "B54880", "D80B8C"]
        ]
	});
	
	
	$("#attraction-slider, header .site-title").bind("mouseover", function() {
		$("header a.contact-link").css("visibility", "visible");
	});
	$("#attraction-slider, header .site-title").bind("mouseout", function() {
		$("header a.contact-link").css("visibility", "hidden");
	});
	
	$(function(){
        
        $('#slider-section-1').click(function () {
          $("#slider-sliding-bar-1").effect("bounce", { direction:'right', times:3 }, 1000);
            $('#slider-sliding-bar-2').effect("bounce", { direction:'right', times:3}, 900);
            $('#slider-sliding-bar-3').effect("bounce", { direction:'right', times:3 }, 800);
            
        });
        
        $('#slider-section-2').click(function () {
            $("#slider-sliding-bar-1").effect("bounce", { direction:'right', times:3 }, 800);
            $('#slider-sliding-bar-2').effect("bounce", { direction:'right', times:3}, 900);
            $('#slider-sliding-bar-3').effect("bounce", { direction:'right', times:3 }, 800);
            
        });
        
        
        $('#slider-section-3').click(function () {
            $("#slider-sliding-bar-1").effect("bounce", { direction:'right', times:3 }, 800);
            $('#slider-sliding-bar-2').effect("bounce", { direction:'right', times:3}, 900);
            $('#slider-sliding-bar-3').effect("bounce", { direction:'right', times:3 }, 1000);
            
        });    
        
        
    });	
	
});
